package com.gxh.vo;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "小程序端设备浏览返回的数据格式")
public class MachineItemVO implements Serializable {
    @ApiModelProperty("主键")
    private Long id;
    @ApiModelProperty("设备名称或规格")
    private String name;

    @ApiModelProperty("设备品牌")
    private String brand;

    @ApiModelProperty("设备系统")
    private String machineSystem;

    @ApiModelProperty("设备年份")
    private Integer year;

    @ApiModelProperty("设备分类id")
    private Long categoryId;

    @ApiModelProperty("设备分类名称")
    private String categoryName;

    @ApiModelProperty("设备位置id")
    private Long locationId;

    @ApiModelProperty("设备位置名称")
    private String locationName;

    @ApiModelProperty("设备图片")
    private String firstImage;
    @ApiModelProperty("设备价格")
    private BigDecimal customPrice;

    @ApiModelProperty("是否出售")
    private Integer isSold;

    @ApiModelProperty("设备创建时间")
    private LocalDateTime  createTime;
}
